<?php
class My_Exception extends Zend_Exception
{
    //    public function __construct()
    //    {
    //    	echo parent::__construct();    
    //    }
    public function display ($exception)
    {
        debug($exception, 'Full exception');
        echo "<style>";
        echo "body {
        							background: #424242; 
        							font-size: 12px; font-family: Arial;
    								}";
        echo "</style>";
        echo "<div style=\"width:50%; text-align: center;  padding:10px; margin: 100px auto; \">";
        echo "<div align=\"center\"><h3>My Exception:</h3></div>";
        echo "<div>Message: <b>$exception->message</b></div>";
        echo "<div>File: $exception->file, Line: $exception->line</div>";
        echo "</div>";
    }
}